<?php
require ('../Common/db.php');
//连接数据库
$tid = $_GET['tid'];
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
$sql = "delete from blogtype where tid = {$tid}";
$result = mysql_query($sql) or die ('删除失败!'.mysql_error());
$num = mysql_query($sql);
if ($num != 1){
    echo "添加失败,2秒后返回博客类别列表";
    header("refresh:2;url='blogSortList.php'");
}else{
    header("location:blogSortList.php");
}
?>